<?php /* Smarty version 2.6.26, created on 2014-11-09 19:10:21
         compiled from index.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<link rel="stylesheet" href="<?php echo @__VIEW__; ?>
IndexStyle/Css/common.css" />
	<script type="text/javascript" src='<?php echo @__VIEW__; ?>
IndexStyle//Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='<?php echo @__VIEW__; ?>
IndexStyle//Js/top-bar.js'></script>
	<link rel="stylesheet" href="<?php echo @__VIEW__; ?>
IndexStyle//Css/index.css" />
	<script type="text/javascript" src='<?php echo @__VIEW__; ?>
IndexStyle//Js/index.js'></script>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Public/header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<!-- top -->
	<div class='main'>
		<div id='left'>
			<p class='left-title'>所有问题分类</p>
			<ul class='left-list'>
			<?php unset($this->_sections['all']);
$this->_sections['all']['loop'] = is_array($_loop=$this->_tpl_vars['All']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['all']['name'] = 'all';
$this->_sections['all']['max'] = (int)8;
$this->_sections['all']['show'] = true;
if ($this->_sections['all']['max'] < 0)
    $this->_sections['all']['max'] = $this->_sections['all']['loop'];
$this->_sections['all']['step'] = 1;
$this->_sections['all']['start'] = $this->_sections['all']['step'] > 0 ? 0 : $this->_sections['all']['loop']-1;
if ($this->_sections['all']['show']) {
    $this->_sections['all']['total'] = min(ceil(($this->_sections['all']['step'] > 0 ? $this->_sections['all']['loop'] - $this->_sections['all']['start'] : $this->_sections['all']['start']+1)/abs($this->_sections['all']['step'])), $this->_sections['all']['max']);
    if ($this->_sections['all']['total'] == 0)
        $this->_sections['all']['show'] = false;
} else
    $this->_sections['all']['total'] = 0;
if ($this->_sections['all']['show']):

            for ($this->_sections['all']['index'] = $this->_sections['all']['start'], $this->_sections['all']['iteration'] = 1;
                 $this->_sections['all']['iteration'] <= $this->_sections['all']['total'];
                 $this->_sections['all']['index'] += $this->_sections['all']['step'], $this->_sections['all']['iteration']++):
$this->_sections['all']['rownum'] = $this->_sections['all']['iteration'];
$this->_sections['all']['index_prev'] = $this->_sections['all']['index'] - $this->_sections['all']['step'];
$this->_sections['all']['index_next'] = $this->_sections['all']['index'] + $this->_sections['all']['step'];
$this->_sections['all']['first']      = ($this->_sections['all']['iteration'] == 1);
$this->_sections['all']['last']       = ($this->_sections['all']['iteration'] == $this->_sections['all']['total']);
?>
				<li class='list-l1'>
					<div class='list-l1-wrap'>
						<h4><a href="?m=Index&c=Ask&a=getList&cid=<?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['catname']; ?>
</a></h4>
						<ul class='list-l2'>
							<?php unset($this->_sections['mins']);
$this->_sections['mins']['loop'] = is_array($_loop=$this->_tpl_vars['All'][$this->_sections['all']['index']]['min']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mins']['name'] = 'mins';
$this->_sections['mins']['max'] = (int)3;
$this->_sections['mins']['show'] = true;
if ($this->_sections['mins']['max'] < 0)
    $this->_sections['mins']['max'] = $this->_sections['mins']['loop'];
$this->_sections['mins']['step'] = 1;
$this->_sections['mins']['start'] = $this->_sections['mins']['step'] > 0 ? 0 : $this->_sections['mins']['loop']-1;
if ($this->_sections['mins']['show']) {
    $this->_sections['mins']['total'] = min(ceil(($this->_sections['mins']['step'] > 0 ? $this->_sections['mins']['loop'] - $this->_sections['mins']['start'] : $this->_sections['mins']['start']+1)/abs($this->_sections['mins']['step'])), $this->_sections['mins']['max']);
    if ($this->_sections['mins']['total'] == 0)
        $this->_sections['mins']['show'] = false;
} else
    $this->_sections['mins']['total'] = 0;
if ($this->_sections['mins']['show']):

            for ($this->_sections['mins']['index'] = $this->_sections['mins']['start'], $this->_sections['mins']['iteration'] = 1;
                 $this->_sections['mins']['iteration'] <= $this->_sections['mins']['total'];
                 $this->_sections['mins']['index'] += $this->_sections['mins']['step'], $this->_sections['mins']['iteration']++):
$this->_sections['mins']['rownum'] = $this->_sections['mins']['iteration'];
$this->_sections['mins']['index_prev'] = $this->_sections['mins']['index'] - $this->_sections['mins']['step'];
$this->_sections['mins']['index_next'] = $this->_sections['mins']['index'] + $this->_sections['mins']['step'];
$this->_sections['mins']['first']      = ($this->_sections['mins']['iteration'] == 1);
$this->_sections['mins']['last']       = ($this->_sections['mins']['iteration'] == $this->_sections['mins']['total']);
?>
							<li><a href="?m=Index&c=Ask&a=getList&cid=<?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['min'][$this->_sections['mins']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['min'][$this->_sections['mins']['index']]['catname']; ?>
</a></li>
						<?php endfor; endif; ?>
						</ul>
					</div>
 
					<div class='list-more hidden'>
						<ul>
						<?php unset($this->_sections['mins']);
$this->_sections['mins']['loop'] = is_array($_loop=$this->_tpl_vars['All'][$this->_sections['all']['index']]['min']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mins']['name'] = 'mins';
$this->_sections['mins']['max'] = (int)5;
$this->_sections['mins']['show'] = true;
if ($this->_sections['mins']['max'] < 0)
    $this->_sections['mins']['max'] = $this->_sections['mins']['loop'];
$this->_sections['mins']['step'] = 1;
$this->_sections['mins']['start'] = $this->_sections['mins']['step'] > 0 ? 0 : $this->_sections['mins']['loop']-1;
if ($this->_sections['mins']['show']) {
    $this->_sections['mins']['total'] = min(ceil(($this->_sections['mins']['step'] > 0 ? $this->_sections['mins']['loop'] - $this->_sections['mins']['start'] : $this->_sections['mins']['start']+1)/abs($this->_sections['mins']['step'])), $this->_sections['mins']['max']);
    if ($this->_sections['mins']['total'] == 0)
        $this->_sections['mins']['show'] = false;
} else
    $this->_sections['mins']['total'] = 0;
if ($this->_sections['mins']['show']):

            for ($this->_sections['mins']['index'] = $this->_sections['mins']['start'], $this->_sections['mins']['iteration'] = 1;
                 $this->_sections['mins']['iteration'] <= $this->_sections['mins']['total'];
                 $this->_sections['mins']['index'] += $this->_sections['mins']['step'], $this->_sections['mins']['iteration']++):
$this->_sections['mins']['rownum'] = $this->_sections['mins']['iteration'];
$this->_sections['mins']['index_prev'] = $this->_sections['mins']['index'] - $this->_sections['mins']['step'];
$this->_sections['mins']['index_next'] = $this->_sections['mins']['index'] + $this->_sections['mins']['step'];
$this->_sections['mins']['first']      = ($this->_sections['mins']['iteration'] == 1);
$this->_sections['mins']['last']       = ($this->_sections['mins']['iteration'] == $this->_sections['mins']['total']);
?>
							<li><a href="?m=Index&c=Ask&a=getList&cid=<?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['min'][$this->_sections['mins']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['All'][$this->_sections['all']['index']]['min'][$this->_sections['mins']['index']]['catname']; ?>
</a></li>
						<?php endfor; endif; ?>
						</ul>
					</div>
				</li>
				<?php endfor; endif; ?>
			</ul>
		</div>

		<div id='center'>
			<div id='animate'>
				<div class='imgs-wrap'>
					<ul>
						<li>
							<a href=""><img src="<?php echo @__VIEW__; ?>
IndexStyle/Images/animate1.jpg" width='558' height='190'/></a>
						</li>
						<li>
							<a href=""><img src="<?php echo @__VIEW__; ?>
IndexStyle/Images/animate2.jpg" width='558' height='190'/></a>
						</li>
						<li>
							<a href=""><img src="<?php echo @__VIEW__; ?>
IndexStyle/Images/animate3.jpg" width='558' height='190'/></a>
						</li>
					</ul>
				</div>
				<ul class='ani-btn'>
					<li class='ani-btn-cur'>0学费学习<i></i></li>
					<li>超百G原创视频<i></i></li>
					<li style='border:none'>有实力做后盾<i></i></li>
				</ul>
			</div>

			<dl class='answer-list'>
				<dt>
					<span class='wait-as'>待解决问题</span>
					<a href=''>更多>></a>
				</dt>
				<?php if ($this->_tpl_vars['white']): ?>
				<?php unset($this->_sections['white']);
$this->_sections['white']['loop'] = is_array($_loop=$this->_tpl_vars['white']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['white']['name'] = 'white';
$this->_sections['white']['max'] = (int)5;
$this->_sections['white']['show'] = true;
if ($this->_sections['white']['max'] < 0)
    $this->_sections['white']['max'] = $this->_sections['white']['loop'];
$this->_sections['white']['step'] = 1;
$this->_sections['white']['start'] = $this->_sections['white']['step'] > 0 ? 0 : $this->_sections['white']['loop']-1;
if ($this->_sections['white']['show']) {
    $this->_sections['white']['total'] = min(ceil(($this->_sections['white']['step'] > 0 ? $this->_sections['white']['loop'] - $this->_sections['white']['start'] : $this->_sections['white']['start']+1)/abs($this->_sections['white']['step'])), $this->_sections['white']['max']);
    if ($this->_sections['white']['total'] == 0)
        $this->_sections['white']['show'] = false;
} else
    $this->_sections['white']['total'] = 0;
if ($this->_sections['white']['show']):

            for ($this->_sections['white']['index'] = $this->_sections['white']['start'], $this->_sections['white']['iteration'] = 1;
                 $this->_sections['white']['iteration'] <= $this->_sections['white']['total'];
                 $this->_sections['white']['index'] += $this->_sections['white']['step'], $this->_sections['white']['iteration']++):
$this->_sections['white']['rownum'] = $this->_sections['white']['iteration'];
$this->_sections['white']['index_prev'] = $this->_sections['white']['index'] - $this->_sections['white']['step'];
$this->_sections['white']['index_next'] = $this->_sections['white']['index'] + $this->_sections['white']['step'];
$this->_sections['white']['first']      = ($this->_sections['white']['iteration'] == 1);
$this->_sections['white']['last']       = ($this->_sections['white']['iteration'] == $this->_sections['white']['total']);
?>
				<dd>
					<a href="?m=Index&c=Ans&a=answer&aid=<?php echo $this->_tpl_vars['white'][$this->_sections['white']['index']]['ask_id']; ?>
"><?php echo $this->_tpl_vars['white'][$this->_sections['white']['index']]['ask_content']; ?>
</a>
					<?php if ($this->_tpl_vars['white'][$this->_sections['white']['index']]['ans_content']): ?>
					<span><?php echo $this->_tpl_vars['white'][$this->_sections['white']['index']]['count']; ?>
回答</span>
					<?php else: ?>
					<span>0回答</span>
					<?php endif; ?>
				</dd>
				<?php endfor; endif; ?>
				<?php else: ?>
				<dd>
					暂时没有未解决的问题哦...
				</dd>
				<?php endif; ?>
			</dl>

			<dl class='answer-list'>
				<dt>
					<span class='reward-as'>高分悬赏问题</span>
					<a href=''>更多>></a>
				</dt>
				<?php unset($this->_sections['golds']);
$this->_sections['golds']['loop'] = is_array($_loop=$this->_tpl_vars['golds']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['golds']['name'] = 'golds';
$this->_sections['golds']['max'] = (int)4;
$this->_sections['golds']['show'] = true;
if ($this->_sections['golds']['max'] < 0)
    $this->_sections['golds']['max'] = $this->_sections['golds']['loop'];
$this->_sections['golds']['step'] = 1;
$this->_sections['golds']['start'] = $this->_sections['golds']['step'] > 0 ? 0 : $this->_sections['golds']['loop']-1;
if ($this->_sections['golds']['show']) {
    $this->_sections['golds']['total'] = min(ceil(($this->_sections['golds']['step'] > 0 ? $this->_sections['golds']['loop'] - $this->_sections['golds']['start'] : $this->_sections['golds']['start']+1)/abs($this->_sections['golds']['step'])), $this->_sections['golds']['max']);
    if ($this->_sections['golds']['total'] == 0)
        $this->_sections['golds']['show'] = false;
} else
    $this->_sections['golds']['total'] = 0;
if ($this->_sections['golds']['show']):

            for ($this->_sections['golds']['index'] = $this->_sections['golds']['start'], $this->_sections['golds']['iteration'] = 1;
                 $this->_sections['golds']['iteration'] <= $this->_sections['golds']['total'];
                 $this->_sections['golds']['index'] += $this->_sections['golds']['step'], $this->_sections['golds']['iteration']++):
$this->_sections['golds']['rownum'] = $this->_sections['golds']['iteration'];
$this->_sections['golds']['index_prev'] = $this->_sections['golds']['index'] - $this->_sections['golds']['step'];
$this->_sections['golds']['index_next'] = $this->_sections['golds']['index'] + $this->_sections['golds']['step'];
$this->_sections['golds']['first']      = ($this->_sections['golds']['iteration'] == 1);
$this->_sections['golds']['last']       = ($this->_sections['golds']['iteration'] == $this->_sections['golds']['total']);
?>
				<dd>
					<a href="?m=Index&c=Ans&a=answer&aid=<?php echo $this->_tpl_vars['golds'][$this->_sections['golds']['index']]['ask_id']; ?>
"><b><?php echo $this->_tpl_vars['golds'][$this->_sections['golds']['index']]['ask_gold']; ?>
</b><?php echo $this->_tpl_vars['golds'][$this->_sections['golds']['index']]['ask_content']; ?>
</a>
					<?php if ($this->_tpl_vars['golds'][$this->_sections['golds']['index']]['ans_content']): ?>
					<span><?php echo $this->_tpl_vars['golds'][$this->_sections['golds']['index']]['count']; ?>
回答</span>
					<?php else: ?>
					<span>0回答</span>
					<?php endif; ?>
				</dd>
				<?php endfor; endif; ?>
			</dl>

		</div>
		<!-- 右侧 -->
		<div id='right'>
		<?php if ($_SESSION['id']): ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href=""><img src="" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="">
						<b></b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;">20<b class='point'></b></a></dd>
				<dd>经验值：200</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="">200</a></td>
					<td><a href="">20%</a></td>
					<td class='last'><a href="">回答数</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
		<?php else: ?>
		<div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div>
		<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>本日回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href="">后盾网</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span>100</span></li>
					<li>采纳率：<span>20%</span></li>
				</ul>
			</div>
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href="">后盾网</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span>200</span></li>
				<li>采纳率：<span>100%</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
				<li>
					<a href=""><i class='rank r1'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r2'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r3'></i>houdunwang.com</a>
					<span>100</span>
				</li>				
			</ul>
		</div>
	</div>
</div>
<!-- ---右侧结束---- -->
	</div>
<!--------------------内容主体结束-------------------->
	<div class='clear'></div>
	
<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->